import request from '@/utils/request'

  // 列表
  export function queryList(data) {
    return request({
      url: `/base/vat-setting/index`,
      method: 'post',
      data
    })
  }
  // 日志
  export function oplog(params) {
    return request({
      url: `/oplog/base.vat-setting`,
      method: 'get',
      params
    })
  }
  // 平台佣金设置-启用禁用
  export function settingStatus(data) {
    return request({
      url: `/base/vat-setting/status`,
      method: 'POST',
      data
    })
  }
  // 平台佣金设置-获取详情
  export function detail(params) {
    return request({
      url: `/base/vat-setting/detail`,
      method: 'get',
      params
    })
  }
  //平台佣金设置-编辑
  export function updateSetting(data) {
    return request({
      url: `/base/vat-setting/update`,
      method: 'POST',
      data
    })
  }
  //平台佣金设置-创建
  export function createSetting(data) {
    return request({
      url: `/base/vat-setting/create`,
      method: 'POST',
      data
    })
  }
  //平台佣金设置-删除
  export function deleteSetting(data) {
    return request({
      url: `/base/vat-setting/delete`,
      method: 'POST',
      data
    })
  }
